package com.sumainfor.zuul.controller.dev;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.service.SysDeptEvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 服务中心
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-08 15:24
 **/
@Controller
@RequestMapping("/provider/sysDept")
public class SysDeptEvaController {

    @Autowired
    SysDeptEvaService sysDeptEvaService;
    /**
    * <p>
    * 查询服务中心的下拉框
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getDeptList")
    public JsonResult getDeptList(){
        return sysDeptEvaService.getDeptList();
    }


}
